package com.itheima.service.mongo;

import com.itheima.domain.mongo.Video;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface VideoService {

    // 分页查询推荐视频
    PageBeanVo findVideoByPage(Long userId, Integer pageNum, Integer pageSize);

    // 发布视频
    void saveVideo(Video video);

    //根据id查询视频
    Video findVideoById(ObjectId objectId);

    // 查询指定用户id分页视频
    PageBeanVo findVideoVoByUserIdPage(Long userId, Integer pageNum, Integer pageSize);
}
